home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Applications / ExerciseLog1.09 / ExerciseLog1.09 / background_5793.xml < prev    next >
Extensible Markup Language  |  1994-05-03  |  41KB  |  891 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>5793</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_6083.pbm</bitmap>
  7.     <cantDelete> <true /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_3217.css" />
  11.     <part>
  12.         <id>101</id>
  13.         <type>button</type>
  14.         <visible> <true /> </visible>
  15.         <reserved5> 0 </reserved5>
  16.         <reserved4> 0 </reserved4>
  17.         <reserved3> 0 </reserved3>
  18.         <reserved2> 0 </reserved2>
  19.         <reserved1> 0 </reserved1>
  20.         <enabled> <true /> </enabled>
  21.         <rect>
  22.             <left>399</left>
  23.             <top>20</top>
  24.             <right>483</right>
  25.             <bottom>41</bottom>
  26.         </rect>
  27.         <style>transparent</style>
  28.         <showName> <false /> </showName>
  29.         <highlight> <false /> </highlight>
  30.         <autoHighlight> <false /> </autoHighlight>
  31.         <sharedHighlight> <true /> </sharedHighlight>
  32.         <family>0</family>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>center</textAlign>
  36.         <font>PD@=@Àá√∑</font>
  37.         <textSize>12</textSize>
  38.         <textStyle>plain</textStyle>
  39.         <name>MenuArrow</name>
  40.         <script>on mouseDownsend mouseDown to bkgnd field "MenuTitle"end mouseDown</script>
  41.     </part>
  42.     <part>
  43.         <id>35</id>
  44.         <type>field</type>
  45.         <visible> <true /> </visible>
  46.         <dontWrap> <false /> </dontWrap>
  47.         <dontSearch> <false /> </dontSearch>
  48.         <sharedText> <false /> </sharedText>
  49.         <fixedLineHeight> <false /> </fixedLineHeight>
  50.         <autoTab> <false /> </autoTab>
  51.         <lockText> <true /> </lockText>
  52.         <rect>
  53.             <left>99</left>
  54.             <top>24</top>
  55.             <right>222</right>
  56.             <bottom>40</bottom>
  57.         </rect>
  58.         <style>transparent</style>
  59.         <autoSelect> <false /> </autoSelect>
  60.         <showLines> <false /> </showLines>
  61.         <wideMargins> <false /> </wideMargins>
  62.         <multipleLines> <false /> </multipleLines>
  63.         <reservedFamily> 0 </reservedFamily>
  64.         <titleWidth>0</titleWidth>
  65.         <icon>0</icon>
  66.         <textAlign>left</textAlign>
  67.         <font>Palatino</font>
  68.         <textSize>12</textSize>
  69.         <textStyle>bold</textStyle>
  70.         <textHeight>16</textHeight>
  71.         <name>Week</name>
  72.         <script></script>
  73.     </part>
  74.     <part>
  75.         <id>40</id>
  76.         <type>field</type>
  77.         <visible> <true /> </visible>
  78.         <dontWrap> <false /> </dontWrap>
  79.         <dontSearch> <false /> </dontSearch>
  80.         <sharedText> <false /> </sharedText>
  81.         <fixedLineHeight> <true /> </fixedLineHeight>
  82.         <autoTab> <false /> </autoTab>
  83.         <lockText> <true /> </lockText>
  84.         <rect>
  85.             <left>45</left>
  86.             <top>59</top>
  87.             <right>64</right>
  88.             <bottom>77</bottom>
  89.         </rect>
  90.         <style>transparent</style>
  91.         <autoSelect> <false /> </autoSelect>
  92.         <showLines> <false /> </showLines>
  93.         <wideMargins> <false /> </wideMargins>
  94.         <multipleLines> <false /> </multipleLines>
  95.         <reservedFamily> 0 </reservedFamily>
  96.         <titleWidth>0</titleWidth>
  97.         <icon>0</icon>
  98.         <textAlign>left</textAlign>
  99.         <font>Palatino</font>
  100.         <textSize>12</textSize>
  101.         <textStyle>bold</textStyle>
  102.         <textHeight>16</textHeight>
  103.         <name>Day 1</name>
  104.         <script>on mouseUpif the optionKey is down thenif the shiftKey is down thencompileInfo 0else jumpTo 0end ifend mouseUp</script>
  105.     </part>
  106.     <part>
  107.         <id>55</id>
  108.         <type>field</type>
  109.         <visible> <true /> </visible>
  110.         <dontWrap> <false /> </dontWrap>
  111.         <dontSearch> <false /> </dontSearch>
  112.         <sharedText> <false /> </sharedText>
  113.         <fixedLineHeight> <false /> </fixedLineHeight>
  114.         <autoTab> <false /> </autoTab>
  115.         <lockText> <false /> </lockText>
  116.         <rect>
  117.             <left>45</left>
  118.             <top>76</top>
  119.             <right>260</right>
  120.             <bottom>122</bottom>
  121.         </rect>
  122.         <style>scrolling</style>
  123.         <autoSelect> <false /> </autoSelect>
  124.         <showLines> <false /> </showLines>
  125.         <wideMargins> <false /> </wideMargins>
  126.         <multipleLines> <false /> </multipleLines>
  127.         <reservedFamily> 0 </reservedFamily>
  128.         <titleWidth>0</titleWidth>
  129.         <icon>0</icon>
  130.         <textAlign>left</textAlign>
  131.         <font>Times</font>
  132.         <textSize>9</textSize>
  133.         <textStyle>plain</textStyle>
  134.         <textHeight>12</textHeight>
  135.         <name>Day 1 Text</name>
  136.         <script>on mouseUpsend mouseUp to bkgnd button "Monday"end mouseUp</script>
  137.     </part>
  138.     <part>
  139.         <id>51</id>
  140.         <type>field</type>
  141.         <visible> <true /> </visible>
  142.         <dontWrap> <false /> </dontWrap>
  143.         <dontSearch> <false /> </dontSearch>
  144.         <sharedText> <false /> </sharedText>
  145.         <fixedLineHeight> <true /> </fixedLineHeight>
  146.         <autoTab> <false /> </autoTab>
  147.         <lockText> <true /> </lockText>
  148.         <rect>
  149.             <left>45</left>
  150.             <top>124</top>
  151.             <right>64</right>
  152.             <bottom>142</bottom>
  153.         </rect>
  154.         <style>transparent</style>
  155.         <autoSelect> <false /> </autoSelect>
  156.         <showLines> <false /> </showLines>
  157.         <wideMargins> <false /> </wideMargins>
  158.         <multipleLines> <false /> </multipleLines>
  159.         <reservedFamily> 0 </reservedFamily>
  160.         <titleWidth>0</titleWidth>
  161.         <icon>0</icon>
  162.         <textAlign>left</textAlign>
  163.         <font>Palatino</font>
  164.         <textSize>12</textSize>
  165.         <textStyle>bold</textStyle>
  166.         <textHeight>16</textHeight>
  167.         <name>Day 2</name>
  168.         <script>on mouseUpif the optionKey is down thenif the shiftKey is down thencompileInfo 1else jumpTo 1end ifend mouseUp</script>
  169.     </part>
  170.     <part>
  171.         <id>56</id>
  172.         <type>field</type>
  173.         <visible> <true /> </visible>
  174.         <dontWrap> <false /> </dontWrap>
  175.         <dontSearch> <false /> </dontSearch>
  176.         <sharedText> <false /> </sharedText>
  177.         <fixedLineHeight> <false /> </fixedLineHeight>
  178.         <autoTab> <false /> </autoTab>
  179.         <lockText> <false /> </lockText>
  180.         <rect>
  181.             <left>45</left>
  182.             <top>141</top>
  183.             <right>260</right>
  184.             <bottom>187</bottom>
  185.         </rect>
  186.         <style>scrolling</style>
  187.         <autoSelect> <false /> </autoSelect>
  188.         <showLines> <false /> </showLines>
  189.         <wideMargins> <false /> </wideMargins>
  190.         <multipleLines> <false /> </multipleLines>
  191.         <reservedFamily> 0 </reservedFamily>
  192.         <titleWidth>0</titleWidth>
  193.         <icon>0</icon>
  194.         <textAlign>left</textAlign>
  195.         <font>Times</font>
  196.         <textSize>9</textSize>
  197.         <textStyle>plain</textStyle>
  198.         <textHeight>12</textHeight>
  199.         <name>Day 2 Text</name>
  200.         <script>on mouseUpsend mouseUp to bkgnd button "Tuesday"end mouseUp</script>
  201.     </part>
  202.     <part>
  203.         <id>52</id>
  204.         <type>field</type>
  205.         <visible> <true /> </visible>
  206.         <dontWrap> <false /> </dontWrap>
  207.         <dontSearch> <false /> </dontSearch>
  208.         <sharedText> <false /> </sharedText>
  209.         <fixedLineHeight> <true /> </fixedLineHeight>
  210.         <autoTab> <false /> </autoTab>
  211.         <lockText> <true /> </lockText>
  212.         <rect>
  213.             <left>45</left>
  214.             <top>189</top>
  215.             <right>64</right>
  216.             <bottom>207</bottom>
  217.         </rect>
  218.         <style>transparent</style>
  219.         <autoSelect> <false /> </autoSelect>
  220.         <showLines> <false /> </showLines>
  221.         <wideMargins> <false /> </wideMargins>
  222.         <multipleLines> <false /> </multipleLines>
  223.         <reservedFamily> 0 </reservedFamily>
  224.         <titleWidth>0</titleWidth>
  225.         <icon>0</icon>
  226.         <textAlign>left</textAlign>
  227.         <font>Palatino</font>
  228.         <textSize>12</textSize>
  229.         <textStyle>bold</textStyle>
  230.         <textHeight>16</textHeight>
  231.         <name>Day 3</name>
  232.         <script>on mouseUpif the optionKey is down thenif the shiftKey is down thencompileInfo 2else jumpTo 2end ifend mouseUp</script>
  233.     </part>
  234.     <part>
  235.         <id>57</id>
  236.         <type>field</type>
  237.         <visible> <true /> </visible>
  238.         <dontWrap> <false /> </dontWrap>
  239.         <dontSearch> <false /> </dontSearch>
  240.         <sharedText> <false /> </sharedText>
  241.         <fixedLineHeight> <false /> </fixedLineHeight>
  242.         <autoTab> <false /> </autoTab>
  243.         <lockText> <false /> </lockText>
  244.         <rect>
  245.             <left>45</left>
  246.             <top>206</top>
  247.             <right>260</right>
  248.             <bottom>252</bottom>
  249.         </rect>
  250.         <style>scrolling</style>
  251.         <autoSelect> <false /> </autoSelect>
  252.         <showLines> <false /> </showLines>
  253.         <wideMargins> <false /> </wideMargins>
  254.         <multipleLines> <false /> </multipleLines>
  255.         <reservedFamily> 0 </reservedFamily>
  256.         <titleWidth>0</titleWidth>
  257.         <icon>0</icon>
  258.         <textAlign>left</textAlign>
  259.         <font>Times</font>
  260.         <textSize>9</textSize>
  261.         <textStyle>plain</textStyle>
  262.         <textHeight>12</textHeight>
  263.         <name>Day 3 Text</name>
  264.         <script>on mouseUpsend mouseUp to bkgnd button "Wednesday"end mouseUp</script>
  265.     </part>
  266.     <part>
  267.         <id>54</id>
  268.         <type>field</type>
  269.         <visible> <true /> </visible>
  270.         <dontWrap> <false /> </dontWrap>
  271.         <dontSearch> <false /> </dontSearch>
  272.         <sharedText> <false /> </sharedText>
  273.         <fixedLineHeight> <true /> </fixedLineHeight>
  274.         <autoTab> <false /> </autoTab>
  275.         <lockText> <true /> </lockText>
  276.         <rect>
  277.             <left>45</left>
  278.             <top>254</top>
  279.             <right>64</right>
  280.             <bottom>272</bottom>
  281.         </rect>
  282.         <style>transparent</style>
  283.         <autoSelect> <false /> </autoSelect>
  284.         <showLines> <false /> </showLines>
  285.         <wideMargins> <false /> </wideMargins>
  286.         <multipleLines> <false /> </multipleLines>
  287.         <reservedFamily> 0 </reservedFamily>
  288.         <titleWidth>0</titleWidth>
  289.         <icon>0</icon>
  290.         <textAlign>left</textAlign>
  291.         <font>Palatino</font>
  292.         <textSize>12</textSize>
  293.         <textStyle>bold</textStyle>
  294.         <textHeight>16</textHeight>
  295.         <name>Day 4</name>
  296.         <script>on mouseUpif the optionKey is down thenif the shiftKey is down thencompileInfo 3else jumpTo 3end ifend mouseUp</script>
  297.     </part>
  298.     <part>
  299.         <id>58</id>
  300.         <type>field</type>
  301.         <visible> <true /> </visible>
  302.         <dontWrap> <false /> </dontWrap>
  303.         <dontSearch> <false /> </dontSearch>
  304.         <sharedText> <false /> </sharedText>
  305.         <fixedLineHeight> <false /> </fixedLineHeight>
  306.         <autoTab> <false /> </autoTab>
  307.         <lockText> <false /> </lockText>
  308.         <rect>
  309.             <left>45</left>
  310.             <top>271</top>
  311.             <right>260</right>
  312.             <bottom>317</bottom>
  313.         </rect>
  314.         <style>scrolling</style>
  315.         <autoSelect> <false /> </autoSelect>
  316.         <showLines> <false /> </showLines>
  317.         <wideMargins> <false /> </wideMargins>
  318.         <multipleLines> <false /> </multipleLines>
  319.         <reservedFamily> 0 </reservedFamily>
  320.         <titleWidth>0</titleWidth>
  321.         <icon>0</icon>
  322.         <textAlign>left</textAlign>
  323.         <font>Times</font>
  324.         <textSize>9</textSize>
  325.         <textStyle>plain</textStyle>
  326.         <textHeight>12</textHeight>
  327.         <name>Day 4 Text</name>
  328.         <script>on mouseUpsend mouseUp to bkgnd button "Thursday"end mouseUp</script>
  329.     </part>
  330.     <part>
  331.         <id>49</id>
  332.         <type>field</type>
  333.         <visible> <true /> </visible>
  334.         <dontWrap> <false /> </dontWrap>
  335.         <dontSearch> <false /> </dontSearch>
  336.         <sharedText> <false /> </sharedText>
  337.         <fixedLineHeight> <true /> </fixedLineHeight>
  338.         <autoTab> <false /> </autoTab>
  339.         <lockText> <true /> </lockText>
  340.         <rect>
  341.             <left>268</left>
  342.             <top>89</top>
  343.             <right>287</right>
  344.             <bottom>107</bottom>
  345.         </rect>
  346.         <style>transparent</style>
  347.         <autoSelect> <false /> </autoSelect>
  348.         <showLines> <false /> </showLines>
  349.         <wideMargins> <false /> </wideMargins>
  350.         <multipleLines> <false /> </multipleLines>
  351.         <reservedFamily> 0 </reservedFamily>
  352.         <titleWidth>0</titleWidth>
  353.         <icon>0</icon>
  354.         <textAlign>left</textAlign>
  355.         <font>Palatino</font>
  356.         <textSize>12</textSize>
  357.         <textStyle>bold</textStyle>
  358.         <textHeight>16</textHeight>
  359.         <name>Day 5</name>
  360.         <script>on mouseUpif the optionKey is down thenif the shiftKey is down thencompileInfo 4else jumpTo 4end ifend mouseUp</script>
  361.     </part>
  362.     <part>
  363.         <id>59</id>
  364.         <type>field</type>
  365.         <visible> <true /> </visible>
  366.         <dontWrap> <false /> </dontWrap>
  367.         <dontSearch> <false /> </dontSearch>
  368.         <sharedText> <false /> </sharedText>
  369.         <fixedLineHeight> <false /> </fixedLineHeight>
  370.         <autoTab> <false /> </autoTab>
  371.         <lockText> <false /> </lockText>
  372.         <rect>
  373.             <left>268</left>
  374.             <top>106</top>
  375.             <right>483</right>
  376.             <bottom>152</bottom>
  377.         </rect>
  378.         <style>scrolling</style>
  379.         <autoSelect> <false /> </autoSelect>
  380.         <showLines> <false /> </showLines>
  381.         <wideMargins> <false /> </wideMargins>
  382.         <multipleLines> <false /> </multipleLines>
  383.         <reservedFamily> 0 </reservedFamily>
  384.         <titleWidth>0</titleWidth>
  385.         <icon>0</icon>
  386.         <textAlign>left</textAlign>
  387.         <font>Times</font>
  388.         <textSize>9</textSize>
  389.         <textStyle>plain</textStyle>
  390.         <textHeight>12</textHeight>
  391.         <name>Day 5 Text</name>
  392.         <script>on mouseUpsend mouseUp to bkgnd button "Friday"end mouseUp</script>
  393.     </part>
  394.     <part>
  395.         <id>50</id>
  396.         <type>field</type>
  397.         <visible> <true /> </visible>
  398.         <dontWrap> <false /> </dontWrap>
  399.         <dontSearch> <false /> </dontSearch>
  400.         <sharedText> <false /> </sharedText>
  401.         <fixedLineHeight> <true /> </fixedLineHeight>
  402.         <autoTab> <false /> </autoTab>
  403.         <lockText> <true /> </lockText>
  404.         <rect>
  405.             <left>268</left>
  406.             <top>154</top>
  407.             <right>287</right>
  408.             <bottom>172</bottom>
  409.         </rect>
  410.         <style>transparent</style>
  411.         <autoSelect> <false /> </autoSelect>
  412.         <showLines> <false /> </showLines>
  413.         <wideMargins> <false /> </wideMargins>
  414.         <multipleLines> <false /> </multipleLines>
  415.         <reservedFamily> 0 </reservedFamily>
  416.         <titleWidth>0</titleWidth>
  417.         <icon>0</icon>
  418.         <textAlign>left</textAlign>
  419.         <font>Palatino</font>
  420.         <textSize>12</textSize>
  421.         <textStyle>bold</textStyle>
  422.         <textHeight>16</textHeight>
  423.         <name>Day 6</name>
  424.         <script>on mouseUpif the optionKey is down thenif the shiftKey is down thencompileInfo 5else jumpTo 5end ifend mouseUp</script>
  425.     </part>
  426.     <part>
  427.         <id>60</id>
  428.         <type>field</type>
  429.         <visible> <true /> </visible>
  430.         <dontWrap> <false /> </dontWrap>
  431.         <dontSearch> <false /> </dontSearch>
  432.         <sharedText> <false /> </sharedText>
  433.         <fixedLineHeight> <false /> </fixedLineHeight>
  434.         <autoTab> <false /> </autoTab>
  435.         <lockText> <false /> </lockText>
  436.         <rect>
  437.             <left>268</left>
  438.             <top>171</top>
  439.             <right>483</right>
  440.             <bottom>217</bottom>
  441.         </rect>
  442.         <style>scrolling</style>
  443.         <autoSelect> <false /> </autoSelect>
  444.         <showLines> <false /> </showLines>
  445.         <wideMargins> <false /> </wideMargins>
  446.         <multipleLines> <false /> </multipleLines>
  447.         <reservedFamily> 0 </reservedFamily>
  448.         <titleWidth>0</titleWidth>
  449.         <icon>0</icon>
  450.         <textAlign>left</textAlign>
  451.         <font>Times</font>
  452.         <textSize>9</textSize>
  453.         <textStyle>plain</textStyle>
  454.         <textHeight>12</textHeight>
  455.         <name>Day 6 Text</name>
  456.         <script>on mouseUpsend mouseUp to bkgnd button "Saturday"end mouseUp</script>
  457.     </part>
  458.     <part>
  459.         <id>53</id>
  460.         <type>field</type>
  461.         <visible> <true /> </visible>
  462.         <dontWrap> <false /> </dontWrap>
  463.         <dontSearch> <false /> </dontSearch>
  464.         <sharedText> <false /> </sharedText>
  465.         <fixedLineHeight> <true /> </fixedLineHeight>
  466.         <autoTab> <false /> </autoTab>
  467.         <lockText> <true /> </lockText>
  468.         <rect>
  469.             <left>268</left>
  470.             <top>219</top>
  471.             <right>287</right>
  472.             <bottom>237</bottom>
  473.         </rect>
  474.         <style>transparent</style>
  475.         <autoSelect> <false /> </autoSelect>
  476.         <showLines> <false /> </showLines>
  477.         <wideMargins> <false /> </wideMargins>
  478.         <multipleLines> <false /> </multipleLines>
  479.         <reservedFamily> 0 </reservedFamily>
  480.         <titleWidth>0</titleWidth>
  481.         <icon>0</icon>
  482.         <textAlign>left</textAlign>
  483.         <font>Palatino</font>
  484.         <textSize>12</textSize>
  485.         <textStyle>bold</textStyle>
  486.         <textHeight>16</textHeight>
  487.         <name>Day 7</name>
  488.         <script>on mouseUpif the optionKey is down thenif the shiftKey is down thencompileInfo 6else jumpTo 6end ifend mouseUp</script>
  489.     </part>
  490.     <part>
  491.         <id>61</id>
  492.         <type>field</type>
  493.         <visible> <true /> </visible>
  494.         <dontWrap> <false /> </dontWrap>
  495.         <dontSearch> <false /> </dontSearch>
  496.         <sharedText> <false /> </sharedText>
  497.         <fixedLineHeight> <false /> </fixedLineHeight>
  498.         <autoTab> <false /> </autoTab>
  499.         <lockText> <false /> </lockText>
  500.         <rect>
  501.             <left>268</left>
  502.             <top>236</top>
  503.             <right>483</right>
  504.             <bottom>282</bottom>
  505.         </rect>
  506.         <style>scrolling</style>
  507.         <autoSelect> <false /> </autoSelect>
  508.         <showLines> <false /> </showLines>
  509.         <wideMargins> <false /> </wideMargins>
  510.         <multipleLines> <false /> </multipleLines>
  511.         <reservedFamily> 0 </reservedFamily>
  512.         <titleWidth>0</titleWidth>
  513.         <icon>0</icon>
  514.         <textAlign>left</textAlign>
  515.         <font>Times</font>
  516.         <textSize>9</textSize>
  517.         <textStyle>plain</textStyle>
  518.         <textHeight>12</textHeight>
  519.         <name>Day 7 Text</name>
  520.         <script>on mouseUpsend mouseUp to bkgnd button "Sunday"end mouseUp</script>
  521.     </part>
  522.     <part>
  523.         <id>80</id>
  524.         <type>button</type>
  525.         <visible> <true /> </visible>
  526.         <reserved5> 0 </reserved5>
  527.         <reserved4> 0 </reserved4>
  528.         <reserved3> 0 </reserved3>
  529.         <reserved2> 0 </reserved2>
  530.         <reserved1> 0 </reserved1>
  531.         <enabled> <true /> </enabled>
  532.         <rect>
  533.             <left>435</left>
  534.             <top>286</top>
  535.             <right>470</right>
  536.             <bottom>320</bottom>
  537.         </rect>
  538.         <style>transparent</style>
  539.         <showName> <false /> </showName>
  540.         <highlight> <false /> </highlight>
  541.         <autoHighlight> <false /> </autoHighlight>
  542.         <sharedHighlight> <true /> </sharedHighlight>
  543.         <family>0</family>
  544.         <titleWidth>0</titleWidth>
  545.         <icon>31685</icon>
  546.         <textAlign>center</textAlign>
  547.         <font>Chicago</font>
  548.         <textSize>12</textSize>
  549.         <textStyle>plain</textStyle>
  550.         <name>Help</name>
  551.         <script>on mouseUppush card -- remember where we came from.visual iris opengo card "Help Weekly 1"end mouseUp</script>
  552.     </part>
  553.     <part>
  554.         <id>81</id>
  555.         <type>field</type>
  556.         <visible> <true /> </visible>
  557.         <dontWrap> <false /> </dontWrap>
  558.         <dontSearch> <false /> </dontSearch>
  559.         <sharedText> <true /> </sharedText>
  560.         <fixedLineHeight> <true /> </fixedLineHeight>
  561.         <autoTab> <false /> </autoTab>
  562.         <lockText> <true /> </lockText>
  563.         <rect>
  564.             <left>385</left>
  565.             <top>308</top>
  566.             <right>432</right>
  567.             <bottom>323</bottom>
  568.         </rect>
  569.         <style>transparent</style>
  570.         <autoSelect> <false /> </autoSelect>
  571.         <showLines> <false /> </showLines>
  572.         <wideMargins> <false /> </wideMargins>
  573.         <multipleLines> <false /> </multipleLines>
  574.         <reservedFamily> 0 </reservedFamily>
  575.         <titleWidth>0</titleWidth>
  576.         <icon>0</icon>
  577.         <textAlign>center</textAlign>
  578.         <font>Palatino</font>
  579.         <textSize>10</textSize>
  580.         <textStyle>plain</textStyle>
  581.         <textHeight>12</textHeight>
  582.         <name>Section Navigation</name>
  583.         <script></script>
  584.     </part>
  585.     <part>
  586.         <id>82</id>
  587.         <type>field</type>
  588.         <visible> <true /> </visible>
  589.         <dontWrap> <false /> </dontWrap>
  590.         <dontSearch> <false /> </dontSearch>
  591.         <sharedText> <true /> </sharedText>
  592.         <fixedLineHeight> <true /> </fixedLineHeight>
  593.         <autoTab> <false /> </autoTab>
  594.         <lockText> <true /> </lockText>
  595.         <rect>
  596.             <left>335</left>
  597.             <top>308</top>
  598.             <right>388</right>
  599.             <bottom>323</bottom>
  600.         </rect>
  601.         <style>transparent</style>
  602.         <autoSelect> <false /> </autoSelect>
  603.         <showLines> <false /> </showLines>
  604.         <wideMargins> <false /> </wideMargins>
  605.         <multipleLines> <false /> </multipleLines>
  606.         <reservedFamily> 0 </reservedFamily>
  607.         <titleWidth>0</titleWidth>
  608.         <icon>0</icon>
  609.         <textAlign>center</textAlign>
  610.         <font>Palatino</font>
  611.         <textSize>10</textSize>
  612.         <textStyle>plain</textStyle>
  613.         <textHeight>12</textHeight>
  614.         <name>Workout Navigation</name>
  615.         <script>-- Go to the weekly card containing the date specified.on mouseUpglobal dayNamesask "Go to which week?" with the short dateif it is empty then exit mouseUpput it into searchDateconvert searchDate to secondsif the result is not empty then exit mouseUp -- invalid date-- calculate what Monday corresponds to this dateput startOfWeek(searchDate,item 1 of dayNames) into theDatevisual effect dissolve fastgo card theDateend mouseUp</script>
  616.     </part>
  617.     <part>
  618.         <id>83</id>
  619.         <type>button</type>
  620.         <visible> <true /> </visible>
  621.         <reserved5> 0 </reserved5>
  622.         <reserved4> 0 </reserved4>
  623.         <reserved3> 0 </reserved3>
  624.         <reserved2> 0 </reserved2>
  625.         <reserved1> 0 </reserved1>
  626.         <enabled> <true /> </enabled>
  627.         <rect>
  628.             <left>408</left>
  629.             <top>288</top>
  630.             <right>428</right>
  631.             <bottom>310</bottom>
  632.         </rect>
  633.         <style>transparent</style>
  634.         <showName> <false /> </showName>
  635.         <highlight> <false /> </highlight>
  636.         <autoHighlight> <true /> </autoHighlight>
  637.         <sharedHighlight> <true /> </sharedHighlight>
  638.         <family>0</family>
  639.         <titleWidth>0</titleWidth>
  640.         <icon>8419</icon>
  641.         <textAlign>center</textAlign>
  642.         <font>Chicago</font>
  643.         <textSize>12</textSize>
  644.         <textStyle>plain</textStyle>
  645.         <name>Next Section</name>
  646.         <script>on mouseUpvisual effect scroll leftgo card 1 of bkgnd "Tallies"end mouseUp</script>
  647.     </part>
  648.     <part>
  649.         <id>84</id>
  650.         <type>button</type>
  651.         <visible> <true /> </visible>
  652.         <reserved5> 0 </reserved5>
  653.         <reserved4> 0 </reserved4>
  654.         <reserved3> 0 </reserved3>
  655.         <reserved2> 0 </reserved2>
  656.         <reserved1> 0 </reserved1>
  657.         <enabled> <true /> </enabled>
  658.         <rect>
  659.             <left>388</left>
  660.             <top>288</top>
  661.             <right>409</right>
  662.             <bottom>310</bottom>
  663.         </rect>
  664.         <style>transparent</style>
  665.         <showName> <false /> </showName>
  666.         <highlight> <false /> </highlight>
  667.         <autoHighlight> <true /> </autoHighlight>
  668.         <sharedHighlight> <true /> </sharedHighlight>
  669.         <family>0</family>
  670.         <titleWidth>0</titleWidth>
  671.         <icon>17779</icon>
  672.         <textAlign>center</textAlign>
  673.         <font>Chicago</font>
  674.         <textSize>12</textSize>
  675.         <textStyle>plain</textStyle>
  676.         <name>Prev Section</name>
  677.         <script>on mouseUpvisual effect scroll rightgo card 1 of bkgnd "Workouts"end mouseUp</script>
  678.     </part>
  679.     <part>
  680.         <id>85</id>
  681.         <type>button</type>
  682.         <visible> <true /> </visible>
  683.         <reserved5> 0 </reserved5>
  684.         <reserved4> 0 </reserved4>
  685.         <reserved3> 0 </reserved3>
  686.         <reserved2> 0 </reserved2>
  687.         <reserved1> 0 </reserved1>
  688.         <enabled> <true /> </enabled>
  689.         <rect>
  690.             <left>361</left>
  691.             <top>288</top>
  692.             <right>381</right>
  693.             <bottom>310</bottom>
  694.         </rect>
  695.         <style>transparent</style>
  696.         <showName> <false /> </showName>
  697.         <highlight> <false /> </highlight>
  698.         <autoHighlight> <true /> </autoHighlight>
  699.         <sharedHighlight> <true /> </sharedHighlight>
  700.         <family>0</family>
  701.         <titleWidth>0</titleWidth>
  702.         <icon>1013</icon>
  703.         <textAlign>center</textAlign>
  704.         <font>Chicago</font>
  705.         <textSize>12</textSize>
  706.         <textStyle>plain</textStyle>
  707.         <name>Next Day</name>
  708.         <script>on mouseUpif the commandKey is down then-- go to the last card in this sectionif the ID of this card <> (the ID of last card of this bkgnd) thenvisual effect wipe left to blackvisual effect wipe left to cardgo last card of this bkgndend ifelse -- just go to next weekvisual effect wipe leftif the ID of this cd <> the ID of last cd of this bg then go nextend ifend mouseUp</script>
  709.     </part>
  710.     <part>
  711.         <id>86</id>
  712.         <type>button</type>
  713.         <visible> <true /> </visible>
  714.         <reserved5> 0 </reserved5>
  715.         <reserved4> 0 </reserved4>
  716.         <reserved3> 0 </reserved3>
  717.         <reserved2> 0 </reserved2>
  718.         <reserved1> 0 </reserved1>
  719.         <enabled> <true /> </enabled>
  720.         <rect>
  721.             <left>341</left>
  722.             <top>288</top>
  723.             <right>362</right>
  724.             <bottom>310</bottom>
  725.         </rect>
  726.         <style>transparent</style>
  727.         <showName> <false /> </showName>
  728.         <highlight> <false /> </highlight>
  729.         <autoHighlight> <true /> </autoHighlight>
  730.         <sharedHighlight> <true /> </sharedHighlight>
  731.         <family>0</family>
  732.         <titleWidth>0</titleWidth>
  733.         <icon>1014</icon>
  734.         <textAlign>center</textAlign>
  735.         <font>Chicago</font>
  736.         <textSize>12</textSize>
  737.         <textStyle>plain</textStyle>
  738.         <name>Prev Day</name>
  739.         <script>on mouseUpif the commandKey is down then-- go to the first card in this sectionif the ID of this card <> (the ID of first card of this bkgnd) thenvisual effect wipe right to blackvisual effect wipe right to cardgo first card of this bkgndend ifelse -- just go to previous weekvisual effect wipe rightif the ID of this cd <> the ID of cd 1 of this bg then go prevend ifend mouseUp</script>
  740.     </part>
  741.     <part>
  742.         <id>100</id>
  743.         <type>field</type>
  744.         <visible> <true /> </visible>
  745.         <dontWrap> <false /> </dontWrap>
  746.         <dontSearch> <false /> </dontSearch>
  747.         <sharedText> <true /> </sharedText>
  748.         <fixedLineHeight> <true /> </fixedLineHeight>
  749.         <autoTab> <false /> </autoTab>
  750.         <lockText> <true /> </lockText>
  751.         <rect>
  752.             <left>400</left>
  753.             <top>25</top>
  754.             <right>472</right>
  755.             <bottom>40</bottom>
  756.         </rect>
  757.         <style>transparent</style>
  758.         <autoSelect> <false /> </autoSelect>
  759.         <showLines> <false /> </showLines>
  760.         <wideMargins> <false /> </wideMargins>
  761.         <multipleLines> <false /> </multipleLines>
  762.         <reservedFamily> 0 </reservedFamily>
  763.         <titleWidth>0</titleWidth>
  764.         <icon>0</icon>
  765.         <textAlign>center</textAlign>
  766.         <font>Palatino</font>
  767.         <textSize>10</textSize>
  768.         <textStyle>bold</textStyle>
  769.         <textHeight>12</textHeight>
  770.         <name>MenuTitle</name>
  771.         <script>on mouseDownglobal scriptCallerput bkgnd field "WeeklyMenu" into MenuOptionsput fullHPop (MenuOptions,"400,41",0) into theOptionif theOption is empty then exit mouseDownelse if item 1 of theOption = "Extend‚Ķ" thenif item 2 of theOption is empty thenexit mouseDown -- user must make choice -> exitelseget getStartDate (item 2 of theOption) -- bkgnd scriptif it is not empty then extend (it)    -- ibid.end ifelse if item 1 of theOption = "Delete‚Ķ" thenif the number of cards of this bkgnd > 1 thenif (item 2 of theOption is empty) or¬¨(word 1 of item 2 of theOption = "This") then-- Remove card(s) if user really wants toanswer "Are you sure you want to delete this card?"¬¨with "Yes" or "No"if it is "Yes" thenput true into scriptCallerdoMenu "Delete Card"put false into scriptCallerend if-- make sure we are left in weekly log sectionif the short name of this bkgnd <> "Weekly Log" thengo prevend ifelse-- Check how many to delete (don't allow to delete all)put the number of cards of this bkgnd into nrCardsput the number of this card into thisCardput the number of card 1 of this bkgnd into firstCardput nrCards - (thisCard-firstCard) into maxToDeleteif thisCard = firstCard then subtract 1 from maxToDeleteask "Delete how many cards (0-" & maxToDelete & ")?" with 1if (it is empty) or (it <= 0)¬¨or (it > maxToDelete) then exit mouseDownrepeat with x = 1 to itdoMenu "Delete Card"end repeatif the short name of this bkgnd <> "Weekly Log" thengo prev -- remain within sectionend ifend ifelse answer "You cannot delete the last weekly log card."else if item 1 of theOption = "Clear card" thenrepeat with x = 1 to 8 -- 7 days + notes fieldput empty into bkgnd field (2*x)end repeatelse if item 1 of theOption = "Read in‚Ķ" thenif (item 2 of theOption is empty)¬¨or (item 2 of theOption = "All") thenrepeat with x = 0 to 6compileInfo xend repeatelsecompileInfo ((item 4 of line 1 of theOption)-2)end ifelse -- item 1 of theOption = "Jump"if item 2 of theOption is not empty thenjumpTo ((item 4 of line 1 of theOption)-1)end ifend ifend mouseDown</script>
  772.     </part>
  773.     <part>
  774.         <id>103</id>
  775.         <type>field</type>
  776.         <visible> <false /> </visible>
  777.         <dontWrap> <false /> </dontWrap>
  778.         <dontSearch> <false /> </dontSearch>
  779.         <sharedText> <true /> </sharedText>
  780.         <fixedLineHeight> <false /> </fixedLineHeight>
  781.         <autoTab> <false /> </autoTab>
  782.         <lockText> <true /> </lockText>
  783.         <rect>
  784.             <left>282</left>
  785.             <top>40</top>
  786.             <right>512</right>
  787.             <bottom>229</bottom>
  788.         </rect>
  789.         <style>rectangle</style>
  790.         <autoSelect> <false /> </autoSelect>
  791.         <showLines> <false /> </showLines>
  792.         <wideMargins> <true /> </wideMargins>
  793.         <multipleLines> <false /> </multipleLines>
  794.         <reservedFamily> 0 </reservedFamily>
  795.         <titleWidth>0</titleWidth>
  796.         <icon>0</icon>
  797.         <textAlign>left</textAlign>
  798.         <font>Palatino</font>
  799.         <textSize>12</textSize>
  800.         <textStyle>plain</textStyle>
  801.         <textHeight>16</textHeight>
  802.         <name>WeeklyMenu</name>
  803.         <script></script>
  804.     </part>
  805.     <part>
  806.         <id>62</id>
  807.         <type>field</type>
  808.         <visible> <true /> </visible>
  809.         <dontWrap> <true /> </dontWrap>
  810.         <dontSearch> <false /> </dontSearch>
  811.         <sharedText> <false /> </sharedText>
  812.         <fixedLineHeight> <false /> </fixedLineHeight>
  813.         <autoTab> <false /> </autoTab>
  814.         <lockText> <false /> </lockText>
  815.         <rect>
  816.             <left>268</left>
  817.             <top>52</top>
  818.             <right>483</right>
  819.             <bottom>87</bottom>
  820.         </rect>
  821.         <style>scrolling</style>
  822.         <autoSelect> <false /> </autoSelect>
  823.         <showLines> <false /> </showLines>
  824.         <wideMargins> <false /> </wideMargins>
  825.         <multipleLines> <false /> </multipleLines>
  826.         <reservedFamily> 0 </reservedFamily>
  827.         <titleWidth>0</titleWidth>
  828.         <icon>0</icon>
  829.         <textAlign>left</textAlign>
  830.         <font>Times</font>
  831.         <textSize>9</textSize>
  832.         <textStyle>plain</textStyle>
  833.         <textHeight>12</textHeight>
  834.         <name>Notes</name>
  835.         <script></script>
  836.     </part>
  837.     <part>
  838.         <id>111</id>
  839.         <type>button</type>
  840.         <visible> <true /> </visible>
  841.         <reserved5> 0 </reserved5>
  842.         <reserved4> 0 </reserved4>
  843.         <reserved3> 0 </reserved3>
  844.         <reserved2> 0 </reserved2>
  845.         <reserved1> 0 </reserved1>
  846.         <enabled> <true /> </enabled>
  847.         <rect>
  848.             <left>302</left>
  849.             <top>38</top>
  850.             <right>319</right>
  851.             <bottom>53</bottom>
  852.         </rect>
  853.         <style>transparent</style>
  854.         <showName> <false /> </showName>
  855.         <highlight> <false /> </highlight>
  856.         <autoHighlight> <false /> </autoHighlight>
  857.         <sharedHighlight> <true /> </sharedHighlight>
  858.         <family>0</family>
  859.         <titleWidth>0</titleWidth>
  860.         <icon>0</icon>
  861.         <textAlign>center</textAlign>
  862.         <font>Chicago</font>
  863.         <textSize>12</textSize>
  864.         <textStyle>plain</textStyle>
  865.         <name>BlowUp</name>
  866.         <script>on mouseUpput the rect of bkgnd field "Notes" into myRectif item 4 of myRect = 87 thenput 285 into item 4 of myRect -- blow upelse put 87 into item 4 of myRectset the rect of bkgnd field "Notes" to myRectend mouseUp</script>
  867.     </part>
  868.     <content>
  869.         <layer>background</layer>
  870.         <id>81</id>
  871.         <text><span class="style1">ections</span><span class="style3"></span></text>
  872.     </content>
  873.     <content>
  874.         <layer>background</layer>
  875.         <id>82</id>
  876.         <text>Weeks</text>
  877.     </content>
  878.     <content>
  879.         <layer>background</layer>
  880.         <id>100</id>
  881.         <text>Weekly Menu</text>
  882.     </content>
  883.     <content>
  884.         <layer>background</layer>
  885.         <id>103</id>
  886.         <text>Extend‚Ķ,Backward: to first workout,Forward: to last workout,Forward: n weeks from this cardDelete‚Ķ,This card,N cardsClear card(--Read in‚Ķ,All,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,SundayJump to‚Ķ,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday</text>
  887.     </content>
  888.     <name>Weekly Log</name>
  889.     <script>-- Hidden field on this background: WeeklyMenu-- Make sure Notes field is small before we leave cardon closeCardput the rect of bkgnd field "Notes" into myRectif item 4 of myRect = 285 thenput 87 into item 4 of myRectset the rect of bkgnd field "Notes" to myRectend ifend closeCard-- Jump to the first workout card corresponding to this dayon jumpTo daysToAdd-- First get today's date & remember this cardput the short name of this card into theDateconvert theDate to secondsadd daysToAdd*86400 to theDate -- add appropriate number of days-- Jump to the first Workout on the date passed in, if any.visual effect zoom opengo card (theDate && 1)end jumpTo-- Compile information for all workouts on this dayon compileInfo daysToAddglobal firstDayOfWeek,dayNamesput 86400 into oneDay-- First get name of this field, and check if it already has dataput "Day" && (daysToAdd+1) && "Text" into fieldNameput item (daysToAdd+1) of dayNames into thisDayif bkgnd field fieldName is not empty thenanswer "Replace information already entered for " &¬¨thisDay & "?" with "Replace" or "Append" or "Cancel"if it is "Cancel" thenexit compileInfoelse put it into doReplaceelse put "Replace" into doReplaceput empty into totals-- Now get today's date & remember this cardset cursor to busyput the short name of this card into theDateadd daysToAdd*oneDay to theDate -- add appropriate number of daysput item ((daysToAdd+8) mod 7 +1) of dayNames into nextDay-- now go to the workout cards for this daypush cardlock screengo card (theDate && 1)-- If no workouts for today, may still want to display totalsif the result is not empty thenif nextDay = firstDayOfWeek then -- this is last day of weekanswer "Put weekly & yearly distance totals through"¬¨&& thisDay && "into the Notes field?"¬¨with "No" or "Yes"if it is "Yes" thenset cursor to busyshow messageput "Finding last day before " & thisDay & " on which you entered a workout..."put 0 into daysTriedgo card (theDate && 1)repeat while the result is not emptysubtract oneDay from theDateadd 1 to daysTriedgo card (theDate && 1)end repeathide messageput getTotals(daysTried<7) into Totalsend ifend ifpop cardif Totals is not empty then put Totals & return before bg fld "Notes"unlock screenexit compileInfoend if-- Gather all the workout information for this day-- 1. General dataput empty into workoutInfoif bkgnd field "Pulse" is not empty thenput "Pulse: " & bkgnd field "Pulse" & ". " into workoutInfoend ifif bkgnd field "Weight" is not empty thenput "Weight: " & bkgnd field "Weight" & "." after workoutInfoend ifif workoutInfo is not empty then put return after workoutInfo-- 2. Data for each workoutrepeat while word 1 of the short name of this card = theDateput getWorkout() & return after workoutInfogo nextend repeat-- 3. Totals, if applicableif nextDay = firstDayOfWeek then -- this is last day of weekanswer "Put weekly & yearly distance totals through"¬¨&& thisDay && "into the Notes field?"¬¨with "No" or "Yes"if it is "Yes" thenset cursor to busygo prev -- last card of the day in questionput getTotals(true) into Totalsend ifend if-- Return to original card and put the data into the fieldpop cardif doReplace = "Replace" thenput workoutInfo into bkgnd field fieldNameelse put return & workoutInfo after bkgnd field fieldNameif Totals is not empty then put Totals & return before bg fld "Notes"end compileInfo-- Compile a summary description of a workout from its card.function getWorkoutput bkgnd field "Sport" && "-" && bkgnd field "Type" into Workoutput bkgnd field "Effort" into tempdelete word 1 to 2 of temp -- effort number and hyphenput " - Effort: " & temp & "." & return after Workoutput bkgnd field "Workout" after Workoutput empty into quantitiesput bkgnd field "Distance" into tDistanceif item 1 of tDistance is not empty thenput item 1 of tDistance && bkgnd fld "DistanceUnit" after quantitiesif item 2 of tDistance is not empty thenput "(+" & item 2 of tDistance & " warmup)" after quantitiesend ifend ifput bkgnd field "Time" into tTimeif item 1 of tTime is not empty thenif quantities is not empty then put ", " after quantitiesput item 1 of tTime after quantitiesif bkgnd fld "TimeUnit" = "minutes" thenput " min." after quantitieselse put " hrs." after quantitiesif item 2 of tTime is not empty thenput "(+" & item 2 of tTime & " warmup)" after quantitiesend ifend ifif bkgnd field "Pace" is not empty thenif quantities is not empty then put ", " after quantitiesput bkgnd fld "Pace" && bkgnd fld "PaceUnit" after quantitiesend ifif quantities is not empty then put ": " & quantities after Workoutput return after workoutput bkgnd field "Comments" after Workout-- strip blank lines off the bottom.repeat while the last line of Workout is emptydelete last line of Workoutend repeatreturn Workoutend getWorkout-- Get weekly and yearly distance & time totals as of last day of the week-- (assumed to be the card on which we currently are!)function getTotals doWeeklyglobal allSports,defaultUnits,firstDayOfWeekput bkgnd field "Totals" into totalDataif totalData is empty then return empty-- write results headerput "Totals (#, " & item 1 of defaultUnits & ", hours) through " &¬¨dayName (firstDayOfWeek,6) & ":" & return into theTotals-- now sort sports from most to least frequentrepeat with x = 1 to the number of items of allSportsput item x of allSports & "," before line x of totalDataend repeatput FullSort(totalData,"t=n","d=d","c=item 5") into totalData-- now list all totalsrepeat with x = 1 to the number of lines of totalDataput line x of totalData into thisLineput item 1 of thisLine & " -" into lineTotalif doWeekly and (item 2 of thisLine <> 0) thenput " week: " & item 2 of thisLine & ", " & item 3 of thisLine &¬¨", " & makeNiceTime ("hours", item 4 of thisLine) after lineTotalend ifif item 5 of thisLine <> 0 then-- separate ourselves from weekly totals, if necessaryif last char of lineTotal <> "-" thenput return & "¬†¬†¬†¬†¬†¬†¬†¬†" after lineTotalend ifput " ytd: " & item 5 of thisLine & ", " & item 6 of thisLine &¬¨", " & makeNiceTime ("hours", item 7 of thisLine) after lineTotalend ifif the last char of lineTotal <> "-" thenput lineTotal & return after theTotalsend ifend repeatreturn theTotalsend getTotals-- Find out when to start adding weeks. There are three options:-- 1. Extend backwards: Make up weekly overview cards to cover--    from the first workout described in the stack to the present--    date (or to meet the earliest existing weekly card)-- 2. Extend forwards to most recent workout entered-- 3. Extend forwards from current card by N weeksfunction getStartDate theOptionglobal dayNamesput 604800 into oneWeek -- # seconds per weekif word 1 of theOption = "Backward:" then -- option 1.get word 1 of the short name of card 1 of bkgnd "Workouts"if it = "card" then -- empty card -> no workout cards yetanswer "Sorry, no workouts entered in log yet."elseput startOfWeek(it,item 1 of dayNames) into workoutWeek-- check if workout predates earliest weekly cardput the short name of card 1 of this bkgnd into firstWeekif word 1 of firstWeek = "card" then-- no weekly overview card yet => use current dateput startOfWeek(the date,item 1 of dayNames) into firstWeekif firstWeek <= workoutWeek thenput "," & 1 after workoutWeekelseput (firstWeek - workoutWeek)/oneWeek into nrWeeks-- add 1 week to include both endpointsput "," & (nrWeeks+1) after workoutWeekend ifelseif firstWeek <= workoutWeek thenanswer "Weekly cards already extend back to first workout"put empty into workoutWeekelseput "," & ((firstWeek - workoutWeek)/oneWeek) after workoutWeekend ifend ifend ifelse if word 3 of theOption = "last" then -- option 2.-- analogous to option 1, except in opposite directionget word 1 of the short name of last card of bkgnd "Workouts"if it = "card" thenanswer "Sorry, no workouts entered in log yet."elseput startOfWeek(it,item 1 of dayNames) into finalWeekput the short name of last card of this bkgnd into workoutWeekif word 1 of workoutWeek = "card" thenput startOfWeek(the date,item 1 of dayNames) into workoutWeekif workoutWeek >= finalWeek thenput "," & 1 after finalWeekelseput "," & ((finalWeek - workoutWeek)/oneWeek +1) after workoutWeekend ifelseadd oneWeek to workoutWeekif workoutWeek > finalWeek thenanswer "Weekly cards already extend ahead to last workout"put empty into finalWeekelseput "," & ((finalWeek - workoutWeek)/oneWeek +1) after workoutWeekend ifend ifend ifelse -- make n cards from this one -- option 3.put short name of this card into workoutWeekif word 1 of workoutWeek = "card" then -- no weekly cards -> start from todayput startOfWeek(the date,item 1 of dayNames) into workoutWeekput 52 into maxWeekselseadd oneWeek to workoutWeek -- don't duplicate this card-- check how many weeks till next weekly cardif (the ID of this card) = (the ID of last cd of this bkgnd) thenput 52 into maxWeekselseget the short name of next cardput (it - workoutWeek)/oneWeek into maxWeeksif maxWeeks = 0 thenanswer "There is no gap between this and the next weekly" &&¬¨"card, so adding cards after this one makes no sense."return emptyend ifend ifend ifask "Add how many weeks? (0-" & maxWeeks & ")" with 1if (it is empty) or (it < 1) or (it > maxWeeks) thenreturn emptyelse put "," & it after workoutWeekend ifreturn workoutWeekend getStartDate-- Make up a new set of weekly summary cardson extend myParamsglobal scriptCallerput true into scriptCallerput 604800 into oneWeek    -- seconds in a weekput item 1 of myParams into startWeekput item 2 of myParams into nrWeeksif nrWeeks < 1 then exit extendset cursor to busy-- deal with first card to addput the short name of this card into thisWeekif word 1 of thisWeek <> "card" thenif startWeek < thisWeek then-- must be going backwards --> make new card first in loggo card 1 of this bkgnddoMenu "New Card"doMenu "Cut Card"go prevgo prevdoMenu "Paste Card"else if startWeek = thisWeek + oneWeek thendoMenu "New Card"else -- must be adding from endgo last card of this bkgnddoMenu "New Card"end ifend ifprepareCard startWeekrepeat with count = 1 to nrWeeks-1add oneWeek to startWeekdoMenu "New Card"prepareCard startWeekend repeatput false into scriptCallerend extend-- Fill in dates of weekdays, etc. on blank weekly log card-- Assumes week starts from Mondayon prepareCard thisDayput 86400 into oneDay        -- seconds in a dayset the name of this card to thisDayput thisDay into itconvert it to long datedelete item 1 of it           -- get rid of name of day and commadelete char 1 of it           -- get rid of spaceput it into bkgnd field "Week"-- Now add each of the dates. Due to internationalization,-- cannot assume format of long date to get date easily.-- Instead, check short date, and assume that if separator is "/",-- we are dealing with US date (month first); if it is ".", we-- assume European date (date first)if offset(".",the date) > 0 thenput "." into separatorelse put "/" into separatorrepeat with index = 1 to 7put item index of dayNames into myDay--convert each day so that date rolls over to "1" at end of monthput thisDay into itconvert it to dateif separator = "/" then delete char 1 to (offset("/",it)) of itput char 1 to (offset(separator,it)-1) of it¬¨into field ("Day" && index)add OneDay to thisDayend repeatend prepareCard</script>
  890. </background>
  891.